//
//  MYSettingItem.m
//  奇闻
//
//  Created by 似水灵修 on 14-12-1.
//  Copyright (c) 2014年 MingYueGuCheng. All rights reserved.
//

#import "MYSettingItem.h"

@implementation MYSettingItem
+ (instancetype)itemWithImage:(UIImage *)image title:(NSString *)title subTitle:(NSString *)subTitle
{
    MYSettingItem *item = [[self alloc] init];
    item.image = image;
    item.title = title;
    item.subTitle = subTitle;
    return item;
}
+ (instancetype)itemWithTitle:(NSString *)title
{
    return [self itemWithImage:nil title:title];
}
+ (instancetype)itemWithImage:(UIImage *)image title:(NSString *)title
{
    return [self itemWithImage:image title:title subTitle:nil];
}
@end
